package cz.semjob.document.processing.data.comparator;

import java.util.Comparator;

import cz.semjob.document.processing.DocumentWord;

public class DependencyHeadComparator implements Comparator<DocumentWord> {
	
	public int compare(DocumentWord o1, DocumentWord o2) {
		if (o1.getDependencyIndex() < o2.getDependencyIndex() ) {
			return -1;
		}
		if (o1.getDependencyIndex() > o2.getDependencyIndex() ) {
			return 1;
		}
		return 0;
	}

}
